package com.valdemar.android.givemeanswers.shared;

import java.util.List;

import com.google.web.bindery.requestfactory.shared.Request;
import com.google.web.bindery.requestfactory.shared.RequestContext;
import com.google.web.bindery.requestfactory.shared.ServiceName;

@ServiceName(value = "com.valdemar.android.givemeanswers.server.GiveMeAnswersService", locator = "com.valdemar.android.givemeanswers.server.GiveMeAnswersServiceLocator")
public interface QuestionsRequest extends RequestContext
{

	Request<QuestionProxy> createQuestion();

	Request<QuestionProxy> readQuestion(Long id);

	Request<QuestionProxy> updateQuestion(QuestionProxy question);

	Request<Void> deleteQuestion(QuestionProxy question);

	Request<List<QuestionProxy>> queryQuestions();

}
